package com.emokili.ewa.common.exception;

/**
 * 业务异常
 * @author yuepanpan
 */
public class BusinessException extends RuntimeException{
    private String code;
    private Object bindArgs[];

    private Enum enums;

    public BusinessException(Enum enums,Object bindArgs[]){
        this.enums = enums;
        this.bindArgs = bindArgs;
    }

    public BusinessException(Enum enums){
        this.enums = enums;
    }

    public BusinessException(Enum enums,String message){
        super(message);
        this.enums = enums;
    }

    public BusinessException(Enum enums,String message,Throwable cause){
        super(message, cause);
        this.enums = enums;
    }

    public BusinessException(){
        super();
    }

    public Object[] getBindArgs() {
        return bindArgs;
    }

    public Enum getEnums() {
        return enums;
    }
}
